import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * 
 */

/**
 * @author zero
 *
 */
public class GameContext
{

    private int                   top;
    private List<Block> blockList = new LinkedList<Block>();
    private Map<Integer, Integer> heightMap = new HashMap<Integer, Integer>();

    private List<Shape>           fallingShapeList = new LinkedList<Shape>();

    /**
     * @return the fallingShapeList
     */
    public List<Shape> getFallingShapeList()
    {
        List<Shape> copyList = new LinkedList<Shape>(fallingShapeList);
        return copyList;
    }

    public int getHeightInX(int x)
    {
        return heightMap.get(x);
    }

    public int getTop()
    {
        return 0;
    }

    public void addFallingShape(Shape shape)
    {
        fallingShapeList.add(shape);
    }

    public void delFallingShape(Shape shape)
    {
        fallingShapeList.remove(shape);
    }
}
